package com.sinping.qh.domain.base;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Field;

import java.util.Date;

/**
 * @author zhangjin
 * @create 2018/5/28
 */
@Data
public class BaseDomain {
   @Id
   private String id;

    /**
     * 创建时间
     */
    @Field("gmt_created")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", locale = "zh", timezone = "GMT+8")
    private Date gmtCreated;
    /**
     * 更新时间
     */
    @Field("gmt_modified")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", locale = "zh", timezone = "GMT+8")
    private Date gmtModified;

}
